
public class Time {
	int hours;
	int mins;
	Time(int x, int y) {
		hours = x;
		mins = y;
	}
	
	public String toString()
	{
		return Integer.toString(hours) + ":" + Integer.toString(mins);
	}

	public double toMinutes() 
	{
		return hours*60 + mins;
	}
}
